package com.yyfax.pay.depository.dao;

import org.apache.ibatis.annotations.Param;

import com.yyfax.pay.depository.domain.FuiouFileUpload;

/**
 * 文件上传持久化接口
 * 
 * @author buyi
 * @date 2017-09-29 09:38:12
 * @since v2.0.0
 */
public interface FuiouFileUploadDao {

	/**
	 * 保存实体
	 * 
	 * @author buyi
	 * @date 2017-09-29 09:38:35
	 * @since v2.0.0
	 *
	 * @param record
	 * @return
	 */
	int insert(FuiouFileUpload record);

	/**
	 * 根据业务主键查询实体对象
	 * 
	 * @author buyi
	 * @date 2017-09-29 09:39:14
	 * @since v2.0.0
	 *
	 * @param busiId
	 * @return
	 */
	FuiouFileUpload selectByPrimaryKey(String busiId);

	/**
	 * 根据商户号和订单号查询订单
	 * 
	 * @author buyi
	 * @date 2017-09-20 14:51:14
	 * @since v2.0.0
	 * @param merchantCode
	 * @param orderId
	 * @return
	 */
	public FuiouFileUpload selectByMerchantCodeAndOrderId(@Param("merchantCode") String merchantCode, @Param("orderId") String orderId);

	/**
	 * 更新状态
	 * 
	 * @author buyi
	 * @date 2017-09-07 15:21:33
	 * @since v2.0.0
	 * @param busiId
	 * @param origState 源状态
	 * @param destState 目标状态
	 * @param rspCode
	 * @param rspMsg
	 * @return
	 */
	public int updateState(@Param("busiId") String busiId, @Param("origState") String origState, @Param("destState") String destState,
			@Param("rspCode") Integer rspCode, @Param("rspMsg") String rspMsg);

}